]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionSystem: Fix an error related to extension importing
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 19 Jan 2012 00:44:30 +0000 (19:44 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 7 Feb 2012 21:00:37 +0000 (16:00 -0500)
If an extension fails to import, we will pass the error object
to logExtensionError, which fails to pass it onto DBus as an
error object is not a string. To fix, convert the error object
to a string before passing it to logExtensionError.

https://bugzilla.gnome.org/show_bug.cgi?id=668429

js/ui/extensionSystem.js

index 23470e153f7bbb3d376de70e1573c5d6cdb04e6f..e7eea667c854177dabeceab98a31e9d9bc7eda18 100644 (file)
@@ -394,7 +394,7 @@ function loadExtension(dir, type, enabled) {
     } catch (e) {
         if (stylesheetPath != null)
             theme.unload_stylesheet(stylesheetPath);
-        logExtensionError(uuid, e);
+        logExtensionError(uuid, '' + e);
         return;
     }